import request from '@/utils/request';

export function addHealthRecord(record) {
    return request.post('/health/add', record);
}

export function deleteHealthRecord(recordId) {
    return request.delete(`/health/delete/${recordId}`);
}

export function updateHealthRecord(record) {
    return request.put('/health/update', record);
}

export function getHealthRecordsByUserId(userId) {
    return request.get(`/health/user/${userId}`);
}
